<template>
  <div class="page-grey">
    <div class="top">
      <span @click="$router.back()">
        <svg-icon icon-class="back" class="icon" />
      </span>
      <span class="center">利息宝</span>
    </div>
    <div class="msg">
      <div class="left">
        <p>存入总额(元): 200000.00</p>
        <p>总收益(元): 177851.00</p>
      </div>
      <div class="right" @click="jump">存一笔</div>
    </div>
    <ul class="list">
      <li class="list-item">
        <div class="left">
          <p class="red">100.00(0.0001)</p>
          <p class="prompt yellow">2020-03-08 14:15:15</p>
          <p class="prompt">2020-03-08 14:15:15</p>
        </div>
        <div class="right">提取</div>
      </li>
      <li class="list-item">
        <div class="left">
          <p class="red">100.00(0.0001)</p>
          <p class="prompt">2020-03-08 14:15:15</p>
        </div>
        <div class="right hollow">已于02-25 16:50提取</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  methods: {
    jump() {
      this.$router.push({ name: "finances" });
    }
  }
};
</script>

<style lang="scss" scoped>
.msg {
  width: 88%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px auto;
  padding: 20px 15px;
  background-color: #6389d1;
  border-radius: 10px;
  box-shadow: 1px 2px 2px #506180;
  color: #fff;
  font-size: 14px;
  .left {
    flex: 1;
    line-height: 38px;
  }
  .right {
    background-color: rgba($color: #fff, $alpha: 0.6);
    border-radius: 5px;
    padding: 3px 8px;
  }
}
.list {
  .list-item {
    .yellow {
      color: #fe0;
    }
    .right {
      background-color: #eb7875;
      border: 1px solid #eb7875;
      color: #fff;
      padding: 5px 10px;
      border-radius: 6px;
      &.hollow {
        border-color: #eb7875;
        color: #eb7875;
        background-color: #fff;
      }
    }
  }
}
</style>
